{include file='admin/header.html'}

<form class="layui-form" action="">
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.username}</label>
        <div class="layui-input-inline">
            <input type="text" name="username" value="" required lay-verify="required" placeholder="{$tran.input_username}"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.password}</label>
        <div class="layui-input-inline">
            <input type="password" name="password" value="" required lay-verify="required" placeholder="{$tran.input_password}"
                autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.email}</label>
        <div class="layui-input-inline">
            <input type="email" name="email" value="" placeholder="{$tran.fetch_password} ({$tran.optional})" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.nickname}</label>
        <div class="layui-input-inline">
            <input type="text" name="nickname" value="" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.phone}</label>
        <div class="layui-input-inline">
            <input type="text" name="phone" value="" placeholder="" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.avatar}</label>
        <div class="layui-input-inline">
            <input type="text" name="avatar" value="" autocomplete="off" class="layui-input upload">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.role}</label>
        <div class="layui-input-inline">
            <select name="role_id">
                <option value="">{$tran.choose}</option>
                {foreach from="$role" item="_role"}
                <option value="{$_role.id}">{$_role.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.language_permission}</label>
        {if $langs}
        <div class="layui-input-inline">
            {foreach from="$langs" item="_lang"}
            <input type="checkbox" name="lang_slugs[]" value="{$_lang.slug}" title="{$_lang.name} （{$_lang.title}）" lay-skin="primary">
            {/foreach}
        </div>
        {/if}
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">{$tran.status}</label>
        <div class="layui-input-block">
            <input type="hidden" name="status" value="1">
            <input type="checkbox" name="status" value="0" lay-skin="switch" checked lay-text="ON|OFF">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{$tran.save}</button>
            <button type="reset" class="layui-btn layui-btn-primary">{$tran.reset}</button>
        </div>
    </div>
</form>

{include file='admin/inc/form.html'}

{include file='admin/footer.html'}